package com.ruoyi.hqfinance.service.impl;

import com.ruoyi.hqfinance.domain.HqSheetType;
import com.ruoyi.hqfinance.mapper.HqSheetTypeMapper;
import com.ruoyi.hqfinance.service.HqSheetTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HqSheetTypeServiceImpl implements HqSheetTypeService {
    @Autowired
    private HqSheetTypeMapper hqSheetTypeMapper;

    @Override
    public List<HqSheetType> selectAll() {
        return hqSheetTypeMapper.selectAll();
    }

    @Override
    public Boolean insert(HqSheetType hqSheetType) {
        return hqSheetTypeMapper.insert(hqSheetType);
    }

    @Override
    public Boolean update(HqSheetType hqSheetType) {
        return hqSheetTypeMapper.update(hqSheetType);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return hqSheetTypeMapper.deleteById(id);
    }
}
